<?php
include '../conn.php';
$data = json_decode($HTTP_RAW_POST_DATA);
$sql = "select * from users_info
        where id = $data->userId
        limit 1";
$isUser = $pdo->getOne($sql);
if($isUser) {
    $sql = "delete from users_content
    where id = $data->id and user_id = $data->userId";
    $req = $pdo->query($sql);
}else {
    $arr = [
        "code" => 400,
        "desc" => '用户信息错误,请重试'
    ];
    echo json_encode($arr);
    exit;
}